ssl2conn = [
	[0,'AT+SSLCFG="seclevel",0,2', 'OK', 1, 1],
	[0,'AT+SSLCFG="cacert",0,"server.crt"', 'OK', 1, 1],
	[0,'AT+SSLCFG="clientcert",0,"client.crt"', 'OK', 1, 1],
	[0,'AT+SSLCFG="clientkey",0,"client.key"', 'OK', 1, 1],
	[0,'AT+CIPRXGET=1','OK',1, 1],
	[0,'AT+CIPSSL=1','OK',1, 1],
	[0,'AT+CIPMUX=1', 'OK', 1, 1],
	[0,'AT+CSTT="'+apn1+'"', 'OK', 5, 1],
	[0,'AT+CIICR', 'OK', 20, 1],
	[0,'AT+CIFSR', Reg('(?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))'), 1, 1],
	[0,'AT+CIPSTART=0,"TCP","36.7.87.100",4434', '0, CONNECT OK', 50, 1],
	[0,'AT+CIPSEND=0', FullMatch('>'), 5, 1],
	[2,'GET / HTTP/1.1\r\nHost: 36.7.87.100\r\nConnection: keep-alive\r\n\r\n\x1a', FullMatch('0, SEND OK\r\n\r\n+CIPRXGET: 1,0'), 20, 1],
	[0,'AT+CIPRXGET=2,0,1024',FullMatch('<html><body><h1>It works!</h1></body></html>\r\n\r\nOK\r\n'),20,1],
	[0,'AT+CIPCLOSE=0', '0, CLOSE OK', 10, 0],
#### error crt	
	[0,'AT+SSLCFG="cacert",0,"server-err.crt"', 'OK', 1, 1],
	[0,'AT+CIPSTART=0,"TCP","36.7.87.100",4434', '0, CONNECT FAIL', 50, 1],
##### no crt	
	[0,'AT+CIPSTART=1,"TCP","36.7.87.100",4434', '1, CONNECT FAIL', 50, 1],
	
#####
	[0,'AT+SSLCFG="seclevel",1,2', 'OK', 1, 1],
	[0,'AT+SSLCFG="cacert",1,"server.crt"', 'OK', 1, 1],
	[0,'AT+SSLCFG="clientcert",1,"client.crt"', 'OK', 1, 1],
	[0,'AT+SSLCFG="clientkey",1,"client.key"', 'OK', 1, 1],
	[0,'AT+CIPSTART=1,"TCP","36.7.87.100",4434', '1, CONNECT OK', 50, 1],
	[0,'AT+CIPSEND=1', FullMatch('>'), 5, 1],
	[2,'GET / HTTP/1.1\r\nHost: 36.7.87.100\r\nConnection: keep-alive\r\n\r\n\x1a', FullMatch('1, SEND OK\r\n\r\n+CIPRXGET: 1,1'), 20, 1],
	[0,'AT+CIPRXGET=2,1,1024',FullMatch('<html><body><h1>It works!</h1></body></html>\r\n\r\nOK\r\n'),20,1],
	
	[0,'AT+CIPSHUT', 'SHUT OK', 20,1],
	[0,'AT+CIPRXGET=0','OK',1, 1],
	[0,'AT+CIPSSL=0','OK',1, 1],
	[0,'AT+CIPMUX=0', 'OK', 1, 1],
]
ssl1conn = [
	[0,'AT+SSLCFG="seclevel",0,1', 'OK', 1, 1],
	[0,'AT+SSLCFG="cacert",0,"server.crt"', 'OK', 1, 1],
	[0,'AT+CIPRXGET=1','OK',1, 1],
	[0,'AT+CIPSSL=1','OK',1, 1],
	[0,'AT+CIPMUX=1', 'OK', 1, 1],
	[0,'AT+CSTT="'+apn1+'"', 'OK', 5, 1],
	[0,'AT+CIICR', 'OK', 20, 1],
	[0,'AT+CIFSR', Reg('(?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))'), 1, 1],
	[0,'AT+CIPSTART=0,"TCP","36.7.87.100",4433', '0, CONNECT OK', 50, 1],
	[0,'AT+CIPSEND=0', FullMatch('>'), 5, 1],
	[2,'GET / HTTP/1.1\r\nHost: 36.7.87.100\r\nConnection: keep-alive\r\n\r\n\x1a', FullMatch('0, SEND OK\r\n\r\n+CIPRXGET: 1,0'), 20, 1],
	[0,'AT+CIPRXGET=2,0,1024',ReMatch('\+CIPRXGET: 2,0,\d+,\d+\r\nHTTP/1.1 200 OK\r\n[\s\S]+OK\r\n'),20,1],
	[0,'AT+CIPCLOSE=0', '0, CLOSE OK', 10, 0],

##### err-crt
	[0,'AT+SSLCFG="seclevel",1,1', 'OK', 1, 1],
	[0,'AT+SSLCFG="cacert",1,"server-err.crt"', 'OK', 1, 1],
	[0,'AT+CIPSTART=1,"TCP","36.7.87.100",4433', '1, CONNECT FAIL', 50, 1],
	[0,'AT+CIPSHUT', 'SHUT OK', 20,1],
	[0,'AT+CIPRXGET=0','OK',1, 1],
	[0,'AT+CIPSSL=0','OK',1, 1],
	[0,'AT+CIPMUX=0', 'OK', 1, 1],
]
ssl3conn = [
    [0,'AT+SSLCFG="seclevel",0,0', 'OK', 1, 1],
	[0,'AT+SSLCFG="ciphersuite",0,0x0035', 'OK', 20,1],
	[0,'AT+SSLCFG="clientrandom",0,4e39019870374b34c7076835f8a17f0b661b50c979873c0f3592aec6', 'OK', 5, 1],
    [0,'AT+SSLCFG="premaster",0,0303019870374b34c7076835f8a17f0b661b50c979873c0f3592aec64e39019870374b34c7076835f8a17f0b661b50c1', 'OK', 5, 1],
	[0,'AT+CIPRXGET=1','OK',1, 1],
	[0,'AT+CIPSSL=1','OK',1, 1],
	[0,'AT+CIPMUX=1', 'OK', 1, 1],
	[0,'AT+CSTT="'+apn1+'"', 'OK', 5, 1],
	[0,'AT+CIICR', 'OK', 20, 1],
	[0,'AT+CIFSR', Reg('(?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))'), 1, 1],
	[0,'AT+CIPSTART=0,"TCP","36.7.87.100",4433', '0, CONNECT OK', 50, 1],
	[0,'AT+CIPSEND=0', FullMatch('>'), 5, 1],
	[2,'GET / HTTP/1.1\r\nHost: 36.7.87.100\r\nConnection: keep-alive\r\n\r\n\x1a', FullMatch('0, SEND OK\r\n\r\n+CIPRXGET: 1,0'), 20, 1],
	[0,'AT+CIPRXGET=2,0,1024','OK',20,1],
	[0,'AT+CIPCLOSE=0', '0, CLOSE OK', 10, 0],
    [0,'AT+SSLCFG="ciphersuite",0,0xffff', 'OK', 20,1],
    [0,'AT+SSLCFG="clientrandom",0,', 'OK', 5, 1],
    [0,'AT+SSLCFG="premaster",0,', 'OK', 5, 1],
##### err-crt
	[0,'AT+SSLCFG="ignorelocaltime",1,0', 'OK', 1, 1],
	[0,'AT+CIPSTART=1,"TCP","36.7.87.100",4433', '1, CONNECT FAIL', 50, 1],
	[0,'AT+CIPSHUT', 'SHUT OK', 20,1],
	[0,'AT+CIPRXGET=0','OK',1, 1],
	[0,'AT+CIPSSL=0','OK',1, 1],
	[0,'AT+CIPMUX=0', 'OK', 1, 1],
	[0,'AT+SSLCFG="ignorelocaltime",1,1', 'OK', 1, 1],
]